local skel = fk.CreateSkill{
  name = "tea__chuaicun",
  tags = { Skill.Compulsory }
}
Fk:loadTranslationTable{
  ["tea__chuaicun"] = "揣忖",
  [":tea__chuaicun"] = "锁定技，当你使用牌造成伤害后，若此牌为红色，你失去1点体力，否则你回复1点体力。",
}
---@type TrigSkelSpec<DamageTrigFunc>
local chuaicun = {
  can_trigger = function (self, event, target, player, data)
    if player:hasSkill(skel.name) and target == player then
      return data.card and data.card.color == Card.Red or player:isWounded()
    end
  end,
  on_use = function (self, event, target, player, data)
    local room = player.room
    if data.card and data.card.color == Card.Red then
      room:loseHp(player, 1, skel.name)
    else
      room:recover{
        who = player,
        num = 1,
        skillName = skel.name
      }
    end
  end
}
skel:addEffect(fk.Damage, chuaicun)
return skel